package top.pmwly.common.constant;

import lombok.*;

/**
 * @author Herther
 * @version 1.0.0
 * @ClassName ReslutEnum.java
 * @Description 返回的状态通用常量
 * @createTime 2021年09月21日 14:11:00
 */
@AllArgsConstructor
@Getter
@ToString
public enum ReslutEnum {



    //后台管理系统成功常量  200
    SUCCESS(200L,"处理成功"),
    SUCCESS_LOGIN(201L,"登录成功"),
    SUCCESS_LOGOUT(202L,"注销成功"),
    //后台用户错误操作常量  300
    FAIL_LOGIN(300L,"用户名密码错误"),
    FAIL_INFO(301L,"账号不存在"),
    FAIL_AUTHORITY(302L,"认证失败，无法访问系统资源"),
    FAIL_ENABLED(303L,"账号被禁用，请联系管理员"),
    FALL_NOT_LOGIN(304L,"尚未登录，请登录"),
    FAIL_OPERATIONS(305L,"操作异常"),
    FAIL_BIND_ERROR(306L,"参数有误"),
    FAIL_TOKEN_ERROR(307L,"令牌失效"),
    FAIL_REQUEST_METHOD(308L,"请求方法有误"),
    FAIL_AUTHENTICATION(309L,"认证异常"),
    FAIL_ROLE_ERROR(310L,"角色查询异常"),
    FAIL_USER_NOT_ENABLED(311L,"不存在或被禁用，请联系管理员"),




    ;
    //系统内部错误常量      500


    private final Long code;
    private final String msg;



}
